Optimal. Leaf size=287 \[ \frac {4 c \tanh ^{-1}\left (\frac {\sqrt {d+e x} \sqrt {2 c f-g \left (\sqrt {b^2-4 a c}+b\right )}}{\sqrt {f+g x} \sqrt {2 c d-e \left (\sqrt {b^2-4 a c}+b\right )}}\right )}{\sqrt {b^2-4 a c} \sqrt {2 c d-e \left (\sqrt {b^2-4 a c}+b\right )} \sqrt {2 c f-g \left (\sqrt {b^2-4 a c}+b\right )}}-\frac {4 c \tanh ^{-1}\left (\frac {\sqrt {d+e x} \sqrt {2 c f-g \left (b-\sqrt {b^2-4 a c}\right )}}{\sqrt {f+g x} \sqrt {2 c d-e \left (b-\sqrt {b^2-4 a c}\right )}}\right )}{\sqrt {b^2-4 a c} \sqrt {2 c d-e \left (b-\sqrt {b^2-4 a c}\right )} \sqrt {2 c f-g \left (b-\sqrt {b^2-4 a c}\right )}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.41, antiderivative size = 287, normalized size of antiderivative = 1.00, number of steps used = 6, number of rules used = 3, integrand size = 31, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.097, Rules used = {911, 93, 208} \[ \frac {4 c \tanh ^{-1}\left (\frac {\sqrt {d+e x} \sqrt {2 c f-g \left (\sqrt {b^2-4 a c}+b\right )}}{\sqrt {f+g x} \sqrt {2 c d-e \left (\sqrt {b^2-4 a c}+b\right )}}\right )}{\sqrt {b^2-4 a c} \sqrt {2 c d-e \left (\sqrt {b^2-4 a c}+b\right )} \sqrt {2 c f-g \left (\sqrt {b^2-4 a c}+b\right )}}-\frac {4 c \tanh ^{-1}\left (\frac {\sqrt {d+e x} \sqrt {2 c f-g \left (b-\sqrt {b^2-4 a c}\right )}}{\sqrt {f+g x} \sqrt {2 c d-e \left (b-\sqrt {b^2-4 a c}\right )}}\right )}{\sqrt {b^2-4 a c} \sqrt {2 c d-e \left (b-\sqrt {b^2-4 a c}\right )} \sqrt {2 c f-g \left (b-\sqrt {b^2-4 a c}\right )}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 93
Rule 208
Rule 911
Rubi steps
\begin {align*} \int \frac {1}{\sqrt {d+e x} \sqrt {f+g x} \left (a+b x+c x^2\right )} \, dx &=\int \left (\frac {2 c}{\sqrt {b^2-4 a c} \left (b-\sqrt {b^2-4 a c}+2 c x\right ) \sqrt {d+e x} \sqrt {f+g x}}-\frac {2 c}{\sqrt {b^2-4 a c} \left (b+\sqrt {b^2-4 a c}+2 c x\right ) \sqrt {d+e x} \sqrt {f+g x}}\right ) \, dx\\ &=\frac {(2 c) \int \frac {1}{\left (b-\sqrt {b^2-4 a c}+2 c x\right ) \sqrt {d+e x} \sqrt {f+g x}} \, dx}{\sqrt {b^2-4 a c}}-\frac {(2 c) \int \frac {1}{\left (b+\sqrt {b^2-4 a c}+2 c x\right ) \sqrt {d+e x} \sqrt {f+g x}} \, dx}{\sqrt {b^2-4 a c}}\\ &=\frac {(4 c) \operatorname {Subst}\left (\int \frac {1}{-2 c d+\left (b-\sqrt {b^2-4 a c}\right ) e-\left (-2 c f+\left (b-\sqrt {b^2-4 a c}\right ) g\right ) x^2} \, dx,x,\frac {\sqrt {d+e x}}{\sqrt {f+g x}}\right )}{\sqrt {b^2-4 a c}}-\frac {(4 c) \operatorname {Subst}\left (\int \frac {1}{-2 c d+\left (b+\sqrt {b^2-4 a c}\right ) e-\left (-2 c f+\left (b+\sqrt {b^2-4 a c}\right ) g\right ) x^2} \, dx,x,\frac {\sqrt {d+e x}}{\sqrt {f+g x}}\right )}{\sqrt {b^2-4 a c}}\\ &=-\frac {4 c \tanh ^{-1}\left (\frac {\sqrt {2 c f-\left (b-\sqrt {b^2-4 a c}\right ) g} \sqrt {d+e x}}{\sqrt {2 c d-\left (b-\sqrt {b^2-4 a c}\right ) e} \sqrt {f+g x}}\right )}{\sqrt {b^2-4 a c} \sqrt {2 c d-\left (b-\sqrt {b^2-4 a c}\right ) e} \sqrt {2 c f-\left (b-\sqrt {b^2-4 a c}\right ) g}}+\frac {4 c \tanh ^{-1}\left (\frac {\sqrt {2 c f-\left (b+\sqrt {b^2-4 a c}\right ) g} \sqrt {d+e x}}{\sqrt {2 c d-\left (b+\sqrt {b^2-4 a c}\right ) e} \sqrt {f+g x}}\right )}{\sqrt {b^2-4 a c} \sqrt {2 c d-\left (b+\sqrt {b^2-4 a c}\right ) e} \sqrt {2 c f-\left (b+\sqrt {b^2-4 a c}\right ) g}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.75, size = 267, normalized size = 0.93 \[ \frac {4 c \left (\frac {\tanh ^{-1}\left (\frac {\sqrt {d+e x} \sqrt {g \left (b-\sqrt {b^2-4 a c}\right )-2 c f}}{\sqrt {f+g x} \sqrt {e \left (b-\sqrt {b^2-4 a c}\right )-2 c d}}\right )}{\sqrt {e \left (b-\sqrt {b^2-4 a c}\right )-2 c d} \sqrt {g \left (b-\sqrt {b^2-4 a c}\right )-2 c f}}-\frac {\tanh ^{-1}\left (\frac {\sqrt {d+e x} \sqrt {g \left (\sqrt {b^2-4 a c}+b\right )-2 c f}}{\sqrt {f+g x} \sqrt {e \left (\sqrt {b^2-4 a c}+b\right )-2 c d}}\right )}{\sqrt {e \left (\sqrt {b^2-4 a c}+b\right )-2 c d} \sqrt {g \left (\sqrt {b^2-4 a c}+b\right )-2 c f}}\right )}{\sqrt {b^2-4 a c}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 0.06, size = 5507, normalized size = 19.19 \[ \text {output too large to display} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {1}{{\left (c x^{2} + b x + a\right )} \sqrt {e x + d} \sqrt {g x + f}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F(-1)] time = 0.00, size = -1, normalized size = -0.00 \[ \text {Hanged} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {1}{\sqrt {d + e x} \sqrt {f + g x} \left (a + b x + c x^{2}\right )}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________